<div>

    <div class="ibox">
        <div class="ibox-title">
            <h5>退货订单</h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddShopHouseModal()">
                    <i class="fa fa-plus"></i>选择订单
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                <thead>
                    <tr>
                        <th class="text-center">编号</th>
                        <th class="text-center">名称</th>
                        <th class="text-center">规格</th>
                        <th class="text-center">进货数量</th>
                        <th class="text-center">数量</th>
                        <th class="text-center">单价</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="inoutOrderProduct in downShopHouseOutManageInfo.inoutOrderProducts">
                        <td class="text-center">{{inoutOrderProduct.productId}}</td>
                        <td class="text-center">{{inoutOrderProduct.prodName}}</td>
                        <td class="text-center">{{inoutOrderProduct.specName}}</td>
                        <td class="text-center">{{inoutOrderProduct.prodCount}}</td>
                        <td class="text-center">
                            <input class="form-control" v-model="inoutOrderProduct.count" @keyup="_caculTotalMount()"
                                type="number" />
                        </td>
                        <td class="text-center">
                            <input class="form-control" v-model="inoutOrderProduct.price" @keyup="_caculTotalMount()"
                                type="number" />
                        </td>
                        <td class="text-center">
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs" v-on:click="_deleteProduct(inoutOrderProduct)">删除
                                </button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <vc:create path="frame/pagination"></vc:create>
        </div>
    </div>

    <div class="ibox">
        <div class="ibox-title">
            <h5>说明</h5>
            <div class="ibox-tools" style="top:10px;">
            </div>
        </div>
        <div class="ibox-content">
            <div class="form-group row">
                <label class="col-sm-1 col-form-label text-right">金额</label>
                <label class="col-sm-3 col-form-label"
                    style="font-size: 14px;color: red;">{{downShopHouseOutManageInfo.totalMount}} </label>
            </div>
            <div class="form-group row">
                <label class="col-sm-1 col-form-label text-right">退货说明</label>
                <div class="col-sm-11 ">
                    <textarea v-model="downShopHouseOutManageInfo.remark" placeholder="必填，请填写退货说明" maxlength="250"
                        class="form-control">
                            </textarea>
                </div>
            </div>
            <div class="ibox-content">
                <button class="btn btn-primary float-right" type="button" v-on:click="_doInoutOrder()">
                    <i class="fa fa-check"></i>&nbsp;提交
                </button>
                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                    v-on:click="_goBack()">
                    <i class="fa fa-close"></i>&nbsp;取消
                </button>
            </div>
        </div>
    </div>

    <vc:create path="goods/chooseInoutOrder" emitChooseInoutOrder='downShopHouseOutManage'
        emitLoadData='downShopHouseOutManage' />
</div>